<?php
require 'smarty/Smarty.class.php';
require 'functions.php';
$obj = new Smarty;

//模板目录
$obj->template_dir='view';

//编译目录
$obj->compile_dir='compile';

$obj->left_delimiter ='{';
$obj->right_delimiter='}';